<%--

  @author Kusal Samarakoon
--%>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<script src="${pageContext.request.contextPath}/js/printer.js" type="text/javascript"></script>
<%--<link rel="stylesheet" href="${pageContext.request.contextPath}/css/printDetailForm.css" media="print"/>--%>

<script type="text/javascript">

    function goBack() {
        window.history.back();
    }

    $(function () {
        $('#cancelBtnId').val($('#cancelBtn').val());
        $('#printBtnId').val($('#printBtn').val());

    });

</script>

<div id="printbtn" class="form-button-div right-align">

    <input type="button" id="printBtnId" onclick="printPage('printDivId', 'A4', 'P');"/>
    <input class="printButton" type="button" id="cancelBtnId" onclick="goBack();"/>

</div>

<s:hidden id="printBtn" value="%{getText('print.label')}"/>
<s:hidden id="cancelBtn" value="%{getText('back.label')}"/>